package pratice;

import java.io.*;
import java.util.Scanner;

/**
 * @author feng
 * @Date 2022/1/1 20:46
 * 获取用户键盘录入的数据,并将数据变成大写显示在控制台上，如果用户输入的是over，结束键盘录入
 */
public class Test4 {
    public static void main(String[] args) throws IOException {
        //获取到键盘上的字节
        InputStream in = System.in;
        //转换流--> 字符流
        InputStreamReader reader = new InputStreamReader(in);
        BufferedReader reader1 = new BufferedReader(reader);

        OutputStream out = System.out;
        OutputStreamWriter writer = new OutputStreamWriter(out);
        BufferedWriter writer1 = new BufferedWriter(writer);
        String s = "";
        while ((s = reader1.readLine()) != null) {
            if (s.equals("over")) {
                break;
            } else {
                String s1 = s.toUpperCase();
                writer1.write(s1);
                writer1.newLine();
                writer1.close();
            }
        }

    }
}
